﻿using WeDonekRpc.Helper.Validate;

namespace Basic.UserRemoteModel.User.Model
{
    public class UserQueryParam
    {
        /// <summary>
        /// 查询关键字 昵称 手机号
        /// </summary>
        [LenValidate("public.query.key.len", 0, 50)]
        public string QueryKey
        {
            get;
            set;
        }
        /// <summary>
        /// 性别
        /// </summary>
        [EnumValidate("user.sex.error", typeof(UserSex))]
        public UserSex? Sex { get; set; }

        /// <summary>
        /// 用户状态
        /// </summary>
        [EnumValidate("user.sex.error", typeof(UserState))]
        public UserState[] UserState { get; set; }

        /// <summary>
        /// 注册方式
        /// </summary>
        [LenValidate("user.reg.mode.len", 0, 20)]
        [FormatValidate("user.reg.mode.error", ValidateFormat.纯字母)]
        public string RegMode { get; set; }

        /// <summary>
        /// 注册开始时段
        /// </summary>
        public DateTime? RegBegin { get; set; }

        /// <summary>
        /// 注册时段
        /// </summary>
        public DateTime? RegEnd { get; set; }

        /// <summary>
        /// 登陆开始时段
        /// </summary>
        public DateTime? LoginBegin { get; set; }

        /// <summary>
        /// 最后登陆结束时段
        /// </summary>
        public DateTime? LoginEnd { get; set; }
    }
}
